package com.slimbloody.controller;

import com.slimbloody.score.interfaces.CalContextSupplier;
import com.slimbloody.score.interfaces.MatchContextSupplier;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/rule")
public class RuleController {
  @Autowired
  private Map<String, MatchContextSupplier> matchContextSuppliers;

  @Autowired
  private Map<String, CalContextSupplier> contextSuppliers;

  @PostMapping("/bean")
  public void rule() {
    System.out.println();
    for (Map.Entry<String, MatchContextSupplier> entry : matchContextSuppliers.entrySet()) {
      entry.getValue();
    }
    System.out.println();
  }
}
